
u9ImHd.registerModule('LogisticsDelivery', [])

    .config(['$stateProvider', '$ocLazyLoadProvider', function ($stateProvider, $ocLazyLoadProvider) {
        $stateProvider
            .state('LogisticsDelivery', {
                url: '/LogisticsDelivery?wareHouseId:wareHouseName',
                templateUrl: u9ImHd.getFullPath('tpls/home.html', 'LogisticsDelivery'),
                controller: 'LogisticsDelivery.HomeCtrl',
                resolve: {
                    loadFile: ['$q', '$ocLazyLoad', function($q, $ocLazyLoad) {
                        var defer = $q.defer();
                        
                        $ocLazyLoad.load(['LogisticsDeliveryFile']).then(function () {
                            defer.resolve();
                        }, function () {
                            defer.reject();
                        });

                        return defer.promise;
                    }]
                }
            });

        $ocLazyLoadProvider.config({
            modules: [{
                name: 'LogisticsDeliveryFile',
                files: [
                    u9ImHd.getFullPath('js/controllers/LogisticsDelivery.HomeCtrl.js', 'LogisticsDelivery'),
                    u9ImHd.getFullPath('js/services/LogisticsDelivery.DeliveryService.js', 'LogisticsDelivery'),
                    u9ImHd.getFullPath('js/utility/DELIVERYCONSTANTS.js', 'LogisticsDelivery')
                ]
            }]
        });
    }]);
